//
//  LeftTextTableViewCell.m
//  GoldBook
//
//  Created by wmz on 2021/8/19.
//  Copyright © 2021 wmz. All rights reserved.
//

#import "LeftTextTableViewCell.h"

@implementation LeftTextTableViewCell

- (void)hd_setupViews{
    @HDWeakify(self)
    self.rightLB.add_event(^(UIView * _Nonnull sender) {
        @HDStrongify(self)
        [GNEvent eventResponder:self target:sender key:@"copyAction" indexPath:nil info:@{@"data":self.model.detail}];
    });
}

- (void)setGNModel:(BaseCellModel*)data{
    self.model = data;
    self.lineView.hidden = !data.lineHidden;
    self.nameLB.add_text(GNFillEmptySpace(data.title))
    .add_font(data.titleFont)
    .add_textColor(data.titleColor);
    
    self.detailLB.add_text(GNFillEmptySpace(data.detail))
    .add_font(data.detailFont)
    .add_textColor(data.detailColor);
    
    self.rightLB.add_text(data.imageTitle);
}
@end
